Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include field name in unsupported type error message #27

Merged
merged 1 commit into from
Sep 11, 2015
Merged

include field name in unsupported type error message #27

merged 1 commit into from
Sep 11, 2015

Conversation

ickymettle
Copy link
Contributor

I was retrofitting multiconfig into an existing project today and run up against a few unsupported types. I was finding that error messages such as:

multiconfig: not supported type: int64

This left me scratching my head on what field was failing (it was indirectly an int64, a time.Duration).

This patch adds the failing field name to the error message, which produces messages such as:

multiconfig: field 'UploadInterval' has unsupported type: int64

Thanks for a great library!

@cihangir
Copy link
Contributor

Thanks @ickymettle !

cihangir pushed a commit that referenced this pull request Sep 11, 2015
include field name in unsupported type error message
@cihangir cihangir merged commit 9c16ba8 into koding:master Sep 11, 2015
@fatih
Copy link
Contributor

fatih commented Sep 11, 2015

We eventually should add more supported types. There is also the issue #26 because of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants